import {request} from "@/utils/request";

// 查询频道信息列表
export function getCommentList(data) {
    return request({
        url: '/comment/front/list',
        method: 'get',
        data
    })
}

export function addComment(data) {
    return request({
        url: '/comment/front',
        method: 'post',
        data
    })
}

export function selectSchoolCommentById(id, sort) {
    return request({
        url: `/comment/front/${id}/${sort}`,
        method: 'get'
    })
}

export function likeComment(id) {
    return request({
        url: `/comment/front/${id}`,
        method: 'put'
    })
}

export function deletePic(data) {
    return request({
        url: `/comment/front/deletePic`,
        method: 'post',
        data
    })
}
export function removeCommentById(id,ancestorId) {
    return request({
        url: `/comment/front/${id}/${ancestorId}`,
        method: 'delete'
    })
}
export function getLikeUsers(notificationId) {
    return request({
        url: `/comment/front/like/${notificationId}`,
        method: 'get'
    })
}
export function locateComment(commentId) {
    return request({
        url: `/comment/front/locate/${commentId}`,
        method: 'get'
    })
}

